import Layout from "@/layout/index.vue";
const routes = [
  {
    path: '/',
    name: 'root',
    component: () => import('../views/home/index.vue'),
  },
  {
    path: '/choose-point',
    name: 'ChoosePoint',
    component: () => import('@/views/choose/choosePoint.vue')
  },
  // {
  //   path: '/login',
  //   name: 'login',
  //   component: () => import('../views/login.vue')
  // },
  {
    path: '/:catchAll(.*)',
    name: 'not-found',
    component: () => import('../layout/404.vue'),
    meta: {
      title: "访问页面不存在",
      keepAlive: true
    }
  },
  {
    path: '/search',
    name: 'searchPages',
    component: () => import('../views/search/searchPage.vue'),
    children: [
      {
        path: '',
        name: 'easySearch',
        component: () => import('../views/search/easySearch.vue')
      },
      {
        path: '/searchList',
        name: 'searchList',
        component: () => import('../views/search/searchList.vue')
      }
    ]
  }



]
export default routes;
